package edzest.basic;

public class J05_Patterns {

	public static void main(String[] args) {
		int i = 1;
		int j = 1;
		while(j <= 6){
			while(i <= j){
				System.out.print(i + " ");
				++i;
			}
			System.out.println();
			i = 1;
			++j;
		}
		System.out.println();
		
		i = 1;
		j = 6;
		while(j >= 1){
			while(i <= j){
				System.out.print(i + " ");
				++i;
			}
			System.out.println();
			i = 1;
			--j;
		}
		System.out.println();
		
	}

}
